{{ define "admin/role/auth.html" }}
{{ template "admin/public/page_header.html" .}}



<div class="panel panel-default">
    <form action="/admin/role/doAuth" method="post">

        <input type="hidden" name="role_id" value="{{.roleId}}" />
        <table class="table table-bordered">

            {{range $key,$value := .accessList}}
            <tr>
                <td align="right" style="background: #D8E2FA; padding-right: 10px; width: 150px;">
                    <label>
                        <input type="checkbox"  {{if eq $value.Checked true }}checked{{end}} class="module_cbo" value="{{$value.Id}}"
                            name="access_node[]">&nbsp;&nbsp;
                        {{$value.ModuleName}}
                    </label>
                </td>
                <td>
                    {{range $k,$v := $value.AccessItem}}
                    &nbsp;&nbsp;
                    <label>
                        <input type="checkbox" {{if eq $v.Checked true }}checked{{end}} class="action_cbo" value="{{$v.Id}}" name="access_node[]">
                        &nbsp;&nbsp;{{$v.ActionName}} </label>&nbsp;&nbsp;
                    {{end}}
                </td>
            </tr>
            {{end}}

        </table>
        <button type="submit" class="btn btn-primary">提交</button>
    </form>

</div>


</body>

</html>

{{end}}